package com.frontalcode 
{
    import flash.net.*;
	
	internal class ContainerXMLLoader extends URLLoader
    {
		public var parent : DocumentElement;
		public var insertPoint : XML;
		public var insertAfter : Boolean;
		public var request : URLRequest;
		
		// This is whatever list was being inserted (if any) when this object
		// was created. We're interested in this to optimize the aplication of
		// style sheet selectors to new XML segments. When doing that, we'd like
		// to compose all the new XML segments into as few pieces as we can to
		// avoid repeating work.
		//
		public var currentXMLList : XMLList;
		
		public function ContainerXMLLoader ( parent : DocumentElement, insertPoint : XML, insertAfter : Boolean, request : URLRequest, currentXMLList : XMLList )
		{
			super ( request );
			
			this.parent = parent;
			this.insertPoint = insertPoint;
			this.insertAfter = insertAfter;
			this.request = request;
			this.currentXMLList = currentXMLList;
		}
    }
}

